"""
project_name = '16'
name = 'lesson601'
datetime ='2020/11/9 19:27'

❣ฅ(▼▾▼)ฅ

"""
# -*-encoding = UTF-8-*-
import random
'''
3个办公室，10位老师，随机分配
'''


# 循环输出整数1~10
# num1 = 0
# while num1 <= 10 :
#     print(num1)
#     num1 += 1

# 逆序输出字符串
# welMsg = "双十一大促开始了!!!"
# print(welMsg[::-1])

# 1、str = 'a,hello'在字符串str中查找hello
str1 = 'a,hello'
indexS = int(str1.find('hello'))
if indexS != -1:
    print("你所查找的数据，存在字符串中，下标为%d" % indexS)
else:
    print("你所查找的数据，不在字符串中")

# 2、str = 'a,b,c,d'用逗号分隔str字符串，并保存到列表
str2 = 'a,b,c,d'
strList = str2.split(',')
print(strList)

# 3、将"笔试题 123A"中123替换为"进行中"
str3 = "笔试题 123A"
str3 = str3.replace('123', '进行中')
print(str3)

